{% extends "DrinkiitBlogBundle::layout.html.twig" %}

{% block suiveur %} <a href="{{ path('admin_index') }}">Accueil</a> > <a href="{{ path('admin_management_article') }}">Articles</a> {% endblock %}

{% block title %}{{ titre }}{% endblock %}

{% block content %}

<form method="post" {{ form_enctype(form) }}>
	
	{{ form_errors(form) }}
	
	<div>
		{{ form_label(form.quantite) }}
		{{ form_errors(form.quantite) }}
		{{ form_widget(form.quantite) }}
	</div>
	<div>
		{{ form_label(form.specificite) }}
		{{ form_errors(form.specificite) }}
		{{ form_widget(form.specificite) }}
	</div>
	<div>
		{{ form_label(form.produit) }}
		{{ form_errors(form.produit) }}
		{{ form_widget(form.produit) }}
	</div>
	
	<input id="submit" type="submit" />
	{{ form_rest(form) }}
</form>

<table>
	<th>Liste des articles déjà créés</th>
{% for article in liste %}
    <tr>
		<td>{{ article.getId }}</td>
		<td>{{ article.getQuantite }}</td>
		<td>{{ article.getProduit }}</td>
		<td>{{ article.getSpecificite }}</td>
		<td></td>
    </tr>
{% else %}
    <th>Aucun articles</th>
{% endfor %}
</table>

{% endblock %}
